/*
 * UMLSynch plugin for Eclipse
 * http://umlsynch.googlecode.com
 *
 * Copyright 2008-2010, Evgeny Alexeyev
 * Licensed under the EPL - v1.0
 * http://www.eclipse.org/legal/epl-v10.html
 *
 */

package com.googlecode.umlsynch.eclipse.rpc;

import org.eclipse.cdt.core.dom.ast.IASTFileLocation;

import com.googlecode.umlsynch.eclipse.UMLSynchPlugin;
import com.googlecode.umlsynch.eclipse.astutils.ASTUtils;
import com.googlecode.umlsynch.eclipse.views.DefinitionView;
import com.googlecode.umlsynch.rpc.TClassOperation;
import com.googlecode.umlsynch.rpc.TFileDescriptor;

import com.googlecode.umlsynch.rpc.TClassDescriptor;

import com.googlecode.umlsynch.rpc.IEditorRpc;
import com.googlecode.umlsynch.rpc.base.IDebug;
import com.googlecode.umlsynch.rpc.base.TDebug;


public class TEditorRpcImplementation implements IEditorRpc
{
  private TDebug debug;

  public TEditorRpcImplementation(IDebug dbg) {
	  debug = new TDebug(dbg);
  }
	
  @Override
  public void OpenMethodImplementation(TClassOperation desc) {
		debug.Debug("OpenMethodImplementation  " + desc.name + "   " + desc.visibility);
		
  }; // OpenMethodImplementation
  
  @Override
  public void OpenMethodDeclaration(TClassOperation desc) {
    // Empty
    return;
  }; // OpenMethodDeclaration
  
  @Override
  public void OpenClass(TClassDescriptor desc) {
	  
	  IEditorRpc editor = UMLSynchPlugin.getDefault().getEditor(desc.language);
	  editor.OpenClass(desc);
	  
	  return;
  }; // OpenClass
  
  @Override
  public void OpenFile(TFileDescriptor desc, Integer line) {
    // Empty
    return;
  }; // OpenFile
  
}; // IEditorRpc
